/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package testjava2d;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Point;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author nicolas
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        JCanvas jc = new JCanvas();
        jc.setBackground(Color.WHITE);

        jc.setPreferredSize(new Dimension(400, 200));
        Dimension dim = new Dimension(20, 20);
        
        VisitorSample v1 = new VisitorSample(20, 20,0);
        v1.setGuide(true);
        VisitorSample v2 = new VisitorSample(30, 50, 45);
        VisitorSample v3 = new VisitorSample(60, 90, 90);

        jc.addVisitor(new VisitorSprite2D(jc, 0, 0, v1));
        jc.addVisitor(new VisitorSprite2D(jc, 0, 0,v2));
        jc.addVisitor(new VisitorSprite2D(jc, 0, 0, v3));
        GUIHelper.showOnFrame(jc, "Java2D Test");

        System.out.println("Pour piloter le visiteur : touches 'z' 'q' 'd'");

        
    }
}
